#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int main(int argc,char* argv [])
{
    int s=0;
    int num1=atoi(argv[2]);
    int num2=atoi(argv[3]);
    if(strcmp(argv[4], "+") == 0)
    {
        s=num1+num2;
        printf("%d\n",s);
    }
    if(strcmp(argv[4], "-") == 0)
    {
       s=num1-num2;
        printf("%d\n",s);
    }
    if(strcmp(argv[4], "*") == 0)
    {
        s=num1*num2;
        printf("%d\n",s);
    }
    if(strcmp(argv[4], "/") == 0)
    {
        s=num1/num2;
        printf("%d\n",s);
    }
    printf("argv[0] = %s\n",argv[0]);
    printf("argv[1] = %s\n",argv[1]);
    printf("argv[2] = %s\n",argv[2]);
    printf("argv[3] = %s\n",argv[3]);
    printf("argv[4] = %s\n",argv[4]);
    printf("计算结束");
    return 0;
}
